FROM appearin/selenium-node-chrome-stable-debug:3.141.59

#ENV PATH=$PATH:/home/seluser/.local/bin

# 移除python3
RUN sudo apt-get update
RUN sudo apt remove python3;sudo apt autoremove

# 重装python3与pip3
RUN sudo apt install -y python3;sudo apt install -y pip

#RUN mkdir -p /root/.pip
#COPY pip.conf /root/.pip

# 安装三方库
COPY requirements.txt /home/seluser
RUN sudo pip3 install -r /home/seluser/requirements.txt

ENV PATH=$PATH:/home/seluser/.local/bin
#RUN robot ./hello.rf
ENTRYPOINT [ "sudo", "robot", "-c" ]
